<?php 
session_start();
 ?>
<div class="cont">
    <div class="logo">
        <img src="../images/logo.png.png" alt="">
    </div>
        <?php 
             if (isset($_SESSION['uname'])) {
                echo('<div class="na"><img src="../images/用户头像.png" alt="" class="ig"><p>'
                .$_SESSION['uname'].'</p></div>');
            }
        ?>
    <ul class="nav">
        <li><a href="HomePage.php">主页</a></li>
        <li><a href="literature.php">知文知著</a></li>
        <li><a href="book-phrase.php">只言片语</a></li>
        <li><a href="AboutUs.html">关于我们</a></li>
        <li><a href="login.php">登录</a></li>
    </ul>
</div>
<script>
</script>
